package com.gaff.emp.core.modules.sys.service;

import com.gaff.emp.core.PageR;
import com.gaff.emp.core.modules.sys.controller.dict.form.CreateForm;
import com.gaff.emp.core.modules.sys.controller.dict.form.UpdateForm;
import com.gaff.emp.core.modules.sys.entity.SysDict;

import java.util.List;
import java.util.Map;

public interface SysDictService {

    PageR queryDictsByPage(Map<String, Object> params);

    SysDict queryDictById(Integer id);

    void createDict(CreateForm form);

    void updateDict(UpdateForm form);

    void deleteById(Integer id);

    SysDict queryOneDictByKey(String key);

    List<SysDict> queryDictByKey(String key);

}
